package top.codedance.iotp.slave.configuration;

import top.codedance.iotp.common.entity.CliCmdEntity;

import java.util.ArrayList;
import java.util.List;

public class CliCmdOptionsConfig {
    public static List<CliCmdEntity> getCmds(){
        List<CliCmdEntity> cmds = new ArrayList<>();
        cmds.add(new CliCmdEntity(false,"t", "port", true, "server port.", Integer.class));
        cmds.add(new CliCmdEntity(false,"l", "logLevel", true, "enable debug mode.", String.class));
        cmds.add(new CliCmdEntity(false,"a", "useAdvancedHttpServer", false, "Use advanced http server.", Boolean.class));
        cmds.add(new CliCmdEntity(false,"x", "ioThreads", true, "IO thread count.", Integer.class));
        cmds.add(new CliCmdEntity(false,"y", "workerThreads", true, "Worker thread count.", Integer.class));
        cmds.add(new CliCmdEntity(false,"u", "username", true, "verify username.", String.class));
        cmds.add(new CliCmdEntity(false,"p", "password", true, "verify password.", String.class));
        return cmds;
    }
}
